package com.baidu.controller;

import com.baidu.response.Response;
import com.baidu.service.UserInfoService;
import com.baidu.utils.CacheUtil;
import com.baidu.vo.UserInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class LoginController {
    @Autowired
    private UserInfoService userInfoService;
    @RequestMapping("/login")
    public Response<String> login(@RequestBody UserInfoVo userInfoVo) {
       return userInfoService.login(userInfoVo);
    }

}
